from brian import *
from brian.library.random_processes import *
from brian.library.synapses import  *
#set_global_preferences(useweave=True,usecodegenweave = True)
import mydata as  mydat

class INRGVars(mydat.globVars):
    
    #glint=(0.51*msiemens*cm**-2)*super.area
    El= -57.5*mV 
    area=mydat.globVars.dia*mydat.globVars.L*math.pi 
    cpf=(1*ufarad*cm**-2)*area
    gk=(100*msiemens*cm**-2)*area # war 36*
    gl=(0.51*msiemens*cm**-2)*area #
    gna=(120*msiemens*cm**-2)*area #
    invtau=1/mydat.globVars.taue
    gsynapse=50*uS*cm**-2*area
    def __init__(self):
        self.area=self.dia*self.L*math.pi 
        self.cpf=(1*ufarad*cm**-2)*self.area
        self.invtau=1/self.taue
        self.gnap=(0.25*msiemens*cm**-2)*self.area #
        self.DUR2=3*self.DUR
        #self.gkint=(100*msiemens*cm**-2)*self.area
        #self.glint=(0.51*msiemens*cm**-2)*self.area
        #self.gnaint=(120*msiemens*cm**-2)*self.area
        self.gk=(100*msiemens*cm**-2)*self.area 
        self.gl=(0.51*msiemens*cm**-2)*self.area #
        self.gna=(120*msiemens*cm**-2)*self.area
        self.gsynapse=50*uS*cm**-2*self.area
    
    
    
